package com.agileboot.domain.app.user.model;

import cn.hutool.core.bean.BeanUtil;
import com.agileboot.domain.app.user.command.AppLoginDTO;
import com.agileboot.domain.app.user.db.AppUserEntity;

public class AppUserModel extends AppUserEntity {

    /**
     * 实体类对拷
     *
     * @param command data
     */
    public void loadAddCommand(AppLoginDTO command) {
        if (command != null) {
            BeanUtil.copyProperties(command, this);
        }
    }
}
